/* 任务信息卡片样式 */
.task-info-card {
  margin-bottom: 20px;
}

.task-info-card .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.task-info-card .label {
  font-weight: 600;
  color: #606266;
  margin-right: 8px;
}

.task-info-card .value {
  font-weight: 500;
}

.text-success {
  color: #67c23a !important;
}

.text-warning {
  color: #e6a23c !important;
}

.text-danger {
  color: #f56c6c !important;
}

/* 面板样式 */
.dept-panel,
.user-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ebeef5;
  background-color: #fafafa;
}

.panel-header h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.panel-content {
  flex: 1;
  padding: 15px 20px;
  overflow: auto;
}

/* 统计信息样式 */
.stats-row {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #909399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 表格样式优化 */
.el-table .current-row {
  background-color: #ecf5ff !important;
}

.el-table .current-row:hover {
  background-color: #d9ecff !important;
}

.el-table tbody tr:hover {
  background-color: #f5f7fa;
}

.el-table tbody tr {
  cursor: pointer;
}

/* Splitpanes 自定义样式 */
:deep(.splitpanes__pane) {
  overflow: auto;
  background-color: #fff;
}

:deep(.splitpanes__splitter) {
  background-color: #e4e7ed;
  border: none;
  position: relative;
}

:deep(.splitpanes__splitter:before) {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.4s;
  background-color: #409eff;
  opacity: 0;
  z-index: 1;
}

:deep(.splitpanes__splitter:hover:before) {
  opacity: 1;
}

:deep(.splitpanes--vertical > .splitpanes__splitter) {
  width: 4px;
}

:deep(.splitpanes--vertical > .splitpanes__splitter:before) {
  width: 100%;
  height: 100%;
}

:deep(.splitpanes--horizontal > .splitpanes__splitter) {
  height: 4px;
}

:deep(.splitpanes--horizontal > .splitpanes__splitter:before) {
  width: 100%;
  height: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .drawer-container {
    padding: 15px;
  }
  
  .panel-header {
    padding: 10px 15px;
  }
  
  .panel-content {
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .drawer-container {
    height: calc(100vh - 120px);
    padding: 10px;
  }
  
  .task-info-card .el-row .el-col {
    margin-bottom: 10px;
  }
  
  .stats-row .el-col {
    margin-bottom: 10px;
  }
  
  .stat-value {
    font-size: 20px;
  }
}

/* 加载状态样式 */
.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.8);
}

/* 空状态样式 */
.el-table__empty-text {
  color: #909399;
  font-size: 14px;
}

/* 按钮组样式 */
.el-button-group .el-button {
  margin-left: 0;
}

.el-button + .el-button {
  margin-left: 8px;
}

/* 标签样式优化 */
.el-tag {
  margin: 2px;
  border-radius: 4px;
}

.el-tag.el-tag--small {
  height: 24px;
  line-height: 22px;
  font-size: 12px;
  padding: 0 8px;
}

/* 徽章样式 */
.el-badge {
  vertical-align: middle;
}

/* 下拉菜单样式 */
.el-dropdown-menu {
  border-radius: 6px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-dropdown-menu__item {
  padding: 8px 16px;
  font-size: 14px;
}

.el-dropdown-menu__item:hover {
  background-color: #f5f7fa;
  color: #409eff;
}

/* 对话框样式 */
.el-dialog {
  border-radius: 8px;
}

.el-dialog__header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #ebeef5;
}

.el-dialog__body {
  padding: 20px;
}

/* 卡片样式 */
.el-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.el-card__header {
  padding: 15px 20px;
  border-bottom: 1px solid #ebeef5;
  background-color: #fafafa;
}

.el-card__body {
  padding: 20px;
}

/* 分页样式 */
.el-pagination {
  text-align: center;
  margin-top: 20px;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #409eff;
  color: #fff;
}

/* 表单样式优化 */
.el-form--inline .el-form-item {
  margin-right: 15px;
  margin-bottom: 10px;
}

.el-form-item__label {
  font-weight: 500;
  color: #606266;
}

/* 输入框样式 */
.el-input__inner {
  border-radius: 4px;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.el-input__inner:focus {
  border-color: #409eff;
  outline: none;
}

/* 选择器样式 */
.el-select .el-input__inner {
  cursor: pointer;
}

/* 工具栏样式 */
.right-toolbar {
  float: right;
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 打印样式 */
@media print {
  .app-container {
    padding: 0;
  }
  
  .el-button,
  .el-pagination,
  .right-toolbar {
    display: none !important;
  }
  
  .el-table {
    border: 1px solid #ddd;
  }
  
  .el-table th,
  .el-table td {
    border: 1px solid #ddd;
    padding: 8px;
  }
}

/* 无障碍支持 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .el-table {
    border: 2px solid #000;
  }
  
  .el-table th,
  .el-table td {
    border: 1px solid #000;
  }
  
  .el-button {
    border: 2px solid #000;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .app-container {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .el-card {
    background-color: #2d2d2d;
    border-color: #404040;
  }
  
  .panel-header {
    background-color: #2d2d2d;
    border-color: #404040;
  }
  
  .stats-row {
    background-color: #2d2d2d;
  }
}